Skip to content

Added tooltip for the communications link - #6140

Merged
thienlnam merged 2 commits into
Expensify:mainfrom
akshayasalvi:tooltip-for-name
Nov 3, 2021
Merged

thienlnam merged 2 commits into
Expensify:mainfrom
akshayasalvi:tooltip-for-name

Conversation

@akshayasalvi

Copy link
Copy Markdown
Contributor

Details

Fixed Issues

$ #5542

Tests

  1. Tested with long emails
  2. Tested for mobile layouts to ensure nothing breaks

QA Steps

  1. Navigate to a conversation with a user that has a long email
  2. Open the user detail page
  3. Hover the cursor over the email and you should see a tooltip

Tested On

  • Web
  • Mobile Web
  • Desktop
  • iOS
  • Android

Screenshots

Web

Screenshot 2021-11-01 at 2 57 31 PM

Mobile Web

NA

Desktop

Screenshot 2021-11-01 at 3 06 36 PM

iOS

NA

Android

NA

@akshayasalvi
akshayasalvi requested a review from a team as a code owner November 1, 2021 09:38
@MelvinBot
MelvinBot requested review from thienlnam and removed request for a team November 1, 2021 09:38
Comment thread src/styles/styles.js Outdated
},

communicationsLinkText: {
width: 320,

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I am strictly against using the fixed width. I would prefer to keep the app flexible (using flexbox) as much as possible.

Any special purpose for using this?

Comment thread src/components/CommunicationsLink.js Outdated
</Pressable>
) : props.children}
) : (
<Tooltip text={props.value}>

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ok. It works but it takes away flexibility that comes with props.children. This tooltip should be passed with children.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Okay got it. I'll add a separate prop for Tooltip.

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think better would be to pass the tooltip with children

@akshayasalvi

Copy link
Copy Markdown
Contributor Author

@parasharrajat PR updated

@parasharrajat parasharrajat left a comment •

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM.

All yours, @thienlnam .

@thienlnam thienlnam left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Awesome, thank you both

@thienlnam
thienlnam merged commit 8ccf3b1 into Expensify:main Nov 3, 2021
@OSBotify

OSBotify commented Nov 3, 2021

Copy link
Copy Markdown
Contributor

✋ This PR was not deployed to staging yet because QA is ongoing. It will be automatically deployed to staging after the next production release.

@OSBotify OSBotify mentioned this pull request Nov 4, 2021
36 tasks done
@OSBotify

OSBotify commented Nov 4, 2021

Copy link
Copy Markdown
Contributor

🚀 Deployed to staging by @thienlnam in version: 1.1.13-3 🚀

platform result
🤖 android 🤖 success ✅
🖥 desktop 🖥 success ✅
🍎 iOS 🍎 success ✅
🕸 web 🕸 success ✅

@OSBotify

Copy link
Copy Markdown
Contributor

🚀 Deployed to production by @Jag96 in version: 1.1.14-4 🚀

platform result
🤖 android 🤖 failure ❌
🖥 desktop 🖥 success ✅
🍎 iOS 🍎 success ✅
🕸 web 🕸 success ✅

@ogumen

ogumen commented Nov 21, 2021

Copy link
Copy Markdown

Accessibility issue found in this PR:

  1. The tooltip bubble cannot be dismissed or hovered without moving mouse pointer - failure of WCAG SC 1.4.13, similar to [low] Hover: Many Pages: Tooltip on hover cannot be dismissed or hovered without moving mouse #5683
    https://user-images.githubusercontent.com/88733897/142771959-cbcc6ac7-19db-4db8-a92f-88e87e29c1dc.mp4

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants